﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Data.EntityClient;
using System.Data.Objects;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for EntitiesTest and is intended
    ///to contain all EntitiesTest Unit Tests
    ///</summary>
    [TestClass()]
    public class EntitiesTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Entities Constructor
        ///</summary>
        [TestMethod()]
        public void EntitiesConstructorTest()
        {
            EntityConnection connection = null; // TODO: Initialize to an appropriate value
            Entities target = new Entities(connection);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Entities Constructor
        ///</summary>
        [TestMethod()]
        public void EntitiesConstructorTest1()
        {
            string connectionString = string.Empty; // TODO: Initialize to an appropriate value
            Entities target = new Entities(connectionString);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Entities Constructor
        ///</summary>
        [TestMethod()]
        public void EntitiesConstructorTest2()
        {
            Entities target = new Entities();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for AddToContact
        ///</summary>
        [TestMethod()]
        public void AddToContactTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Contact contact = null; // TODO: Initialize to an appropriate value
            target.AddToContact(contact);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToDepartment
        ///</summary>
        [TestMethod()]
        public void AddToDepartmentTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Department department = null; // TODO: Initialize to an appropriate value
            target.AddToDepartment(department);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToEmail
        ///</summary>
        [TestMethod()]
        public void AddToEmailTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Email email = null; // TODO: Initialize to an appropriate value
            target.AddToEmail(email);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToMessage
        ///</summary>
        [TestMethod()]
        public void AddToMessageTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Message message = null; // TODO: Initialize to an appropriate value
            target.AddToMessage(message);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToNumber
        ///</summary>
        [TestMethod()]
        public void AddToNumberTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Number number = null; // TODO: Initialize to an appropriate value
            target.AddToNumber(number);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToReminder
        ///</summary>
        [TestMethod()]
        public void AddToReminderTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Reminder reminder = null; // TODO: Initialize to an appropriate value
            target.AddToReminder(reminder);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToRole
        ///</summary>
        [TestMethod()]
        public void AddToRoleTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Role role = null; // TODO: Initialize to an appropriate value
            target.AddToRole(role);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToSMSTemplate
        ///</summary>
        [TestMethod()]
        public void AddToSMSTemplateTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            SMSTemplate sMSTemplate = null; // TODO: Initialize to an appropriate value
            target.AddToSMSTemplate(sMSTemplate);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToUser
        ///</summary>
        [TestMethod()]
        public void AddToUserTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            User user = null; // TODO: Initialize to an appropriate value
            target.AddToUser(user);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for cp_add_reminder
        ///</summary>
        [TestMethod()]
        public void cp_add_reminderTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            string email = string.Empty; // TODO: Initialize to an appropriate value
            string entryid = string.Empty; // TODO: Initialize to an appropriate value
            string content = string.Empty; // TODO: Initialize to an appropriate value
            Nullable<DateTime> remindertime = new Nullable<DateTime>(); // TODO: Initialize to an appropriate value
            Nullable<DateTime> start = new Nullable<DateTime>(); // TODO: Initialize to an appropriate value
            Nullable<DateTime> end = new Nullable<DateTime>(); // TODO: Initialize to an appropriate value
            ObjectParameter outs = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.cp_add_reminder(email, entryid, content, remindertime, start, end, outs);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_delete_nosend_reminder
        ///</summary>
        [TestMethod()]
        public void cp_delete_nosend_reminderTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            string email = string.Empty; // TODO: Initialize to an appropriate value
            ObjectParameter outs = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.cp_delete_nosend_reminder(email, outs);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_insert_user
        ///</summary>
        [TestMethod()]
        public void cp_insert_userTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            string cIL = string.Empty; // TODO: Initialize to an appropriate value
            string nameCN = string.Empty; // TODO: Initialize to an appropriate value
            string nameEN = string.Empty; // TODO: Initialize to an appropriate value
            string email = string.Empty; // TODO: Initialize to an appropriate value
            Nullable<bool> isActive = new Nullable<bool>(); // TODO: Initialize to an appropriate value
            Nullable<int> departmentID = new Nullable<int>(); // TODO: Initialize to an appropriate value
            ObjectParameter returns = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.cp_insert_user(cIL, nameCN, nameEN, email, isActive, departmentID, returns);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_login
        ///</summary>
        [TestMethod()]
        public void cp_loginTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            string cIL = string.Empty; // TODO: Initialize to an appropriate value
            ObjectResult<User> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<User> actual;
            actual = target.cp_login(cIL);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_login
        ///</summary>
        [TestMethod()]
        public void cp_loginTest1()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            string cIL = string.Empty; // TODO: Initialize to an appropriate value
            MergeOption mergeOption = new MergeOption(); // TODO: Initialize to an appropriate value
            ObjectResult<User> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<User> actual;
            actual = target.cp_login(cIL, mergeOption);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_mark_resend
        ///</summary>
        [TestMethod()]
        public void cp_mark_resendTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Nullable<int> id = new Nullable<int>(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.cp_mark_resend(id);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_mark_sendfailed
        ///</summary>
        [TestMethod()]
        public void cp_mark_sendfailedTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Nullable<int> id = new Nullable<int>(); // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_mark_sendfailed(id);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_mark_sendfailed
        ///</summary>
        [TestMethod()]
        public void cp_mark_sendfailedTest1()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Nullable<int> id = new Nullable<int>(); // TODO: Initialize to an appropriate value
            MergeOption mergeOption = new MergeOption(); // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_mark_sendfailed(id, mergeOption);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_mark_sendsuccess
        ///</summary>
        [TestMethod()]
        public void cp_mark_sendsuccessTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Nullable<int> id = new Nullable<int>(); // TODO: Initialize to an appropriate value
            string messageID = string.Empty; // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_mark_sendsuccess(id, messageID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_mark_sendsuccess
        ///</summary>
        [TestMethod()]
        public void cp_mark_sendsuccessTest1()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            Nullable<int> id = new Nullable<int>(); // TODO: Initialize to an appropriate value
            string messageID = string.Empty; // TODO: Initialize to an appropriate value
            MergeOption mergeOption = new MergeOption(); // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_mark_sendsuccess(id, messageID, mergeOption);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_query_sending
        ///</summary>
        [TestMethod()]
        public void cp_query_sendingTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            MergeOption mergeOption = new MergeOption(); // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_query_sending(mergeOption);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_query_sending
        ///</summary>
        [TestMethod()]
        public void cp_query_sendingTest1()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_query_sending();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_query_to_besend
        ///</summary>
        [TestMethod()]
        public void cp_query_to_besendTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            MergeOption mergeOption = new MergeOption(); // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_query_to_besend(mergeOption);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_query_to_besend
        ///</summary>
        [TestMethod()]
        public void cp_query_to_besendTest1()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectResult<Message> expected = null; // TODO: Initialize to an appropriate value
            ObjectResult<Message> actual;
            actual = target.cp_query_to_besend();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_reminder_send
        ///</summary>
        [TestMethod()]
        public void cp_reminder_sendTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectParameter outs = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.cp_reminder_send(outs);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for cp_send_sms
        ///</summary>
        [TestMethod()]
        public void cp_send_smsTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            string from = string.Empty; // TODO: Initialize to an appropriate value
            string text = string.Empty; // TODO: Initialize to an appropriate value
            string to = string.Empty; // TODO: Initialize to an appropriate value
            ObjectParameter outs = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.cp_send_sms(from, text, to, outs);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Contact
        ///</summary>
        [TestMethod()]
        public void ContactTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<Contact> actual;
            actual = target.Contact;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Department
        ///</summary>
        [TestMethod()]
        public void DepartmentTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<Department> actual;
            actual = target.Department;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Email
        ///</summary>
        [TestMethod()]
        public void EmailTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<Email> actual;
            actual = target.Email;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Message
        ///</summary>
        [TestMethod()]
        public void MessageTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<Message> actual;
            actual = target.Message;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Number
        ///</summary>
        [TestMethod()]
        public void NumberTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<Number> actual;
            actual = target.Number;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Reminder
        ///</summary>
        [TestMethod()]
        public void ReminderTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<Reminder> actual;
            actual = target.Reminder;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Role
        ///</summary>
        [TestMethod()]
        public void RoleTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<Role> actual;
            actual = target.Role;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SMSTemplate
        ///</summary>
        [TestMethod()]
        public void SMSTemplateTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<SMSTemplate> actual;
            actual = target.SMSTemplate;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for User
        ///</summary>
        [TestMethod()]
        public void UserTest()
        {
            Entities target = new Entities(); // TODO: Initialize to an appropriate value
            ObjectSet<User> actual;
            actual = target.User;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
